package com.fawvw.digital.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface IPos {
    @Insert("INSERT INTO pos (act) VALUES (#{pos})")
    Integer insert(String pos);

    @Select("SELECT act FROM pos ORDER BY create_time DESC LIMIT 1")
    String selectOneCurrentPos();

}
